<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹簧动画</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            list-style: none;
        }
        body{
            height: 100vh;
            background: #555;
        }
        .container{
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }
        .item{
            position: absolute;
            background-color: transparent;
            width: calc(var(--i) * 25px);
            aspect-ratio: 1;
            border: 10px solid rgb(0, 200, 255);
            border-radius: 50%;
            transform: rotateX(70deg) translateY(20vh);
            animation: move 3s ease-in-out calc(var(--i) * 0.08s) infinite;
        }
        @keyframes move{
            0%,100%{
                transform: rotateX(70deg) translateY(20vh);
                filter: hue-rotate(0deg);
            }
            50%{
                transform: rotateX(70deg) translateY(-40vh);
                filter: hue-rotate(180deg);
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="item" style="--i:0"></div>
        <div class="item" style="--i:1"></div>
        <div class="item" style="--i:2"></div>
        <div class="item" style="--i:3"></div>
        <div class="item" style="--i:4"></div>
        <div class="item" style="--i:5"></div>
        <div class="item" style="--i:6"></div>
        <div class="item" style="--i:7"></div>
        <div class="item" style="--i:8"></div>
        <div class="item" style="--i:9"></div>
        <div class="item" style="--i:10"></div>
    </div>
</body>
</html>